home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / htmlso_1 / link.frm < prev    next >
Text File  |  1998-04-09  |  4KB  |  127 lines

  1. VERSION 5.00
  2. Begin VB.Form Form2 
  3.    BorderStyle     =   1  'Fixed Single
  4.    Caption         =   "Add a Link"
  5.    ClientHeight    =   1305
  6.    ClientLeft      =   1740
  7.    ClientTop       =   2670
  8.    ClientWidth     =   5940
  9.    BeginProperty Font 
  10.       Name            =   "MS Sans Serif"
  11.       Size            =   8.25
  12.       Charset         =   177
  13.       Weight          =   700
  14.       Underline       =   0   'False
  15.       Italic          =   0   'False
  16.       Strikethrough   =   0   'False
  17.    EndProperty
  18.    ForeColor       =   &H80000008&
  19.    Icon            =   "LINK.frx":0000
  20.    LinkTopic       =   "Form2"
  21.    MaxButton       =   0   'False
  22.    MinButton       =   0   'False
  23.    PaletteMode     =   1  'UseZOrder
  24.    ScaleHeight     =   1305
  25.    ScaleWidth      =   5940
  26.    Begin VB.CommandButton cancel 
  27.       BackColor       =   &H80000005&
  28.       Caption         =   "Cancel"
  29.       Height          =   375
  30.       Left            =   3480
  31.       TabIndex        =   5
  32.       Top             =   840
  33.       Width           =   1935
  34.    End
  35.    Begin VB.CommandButton ok 
  36.       BackColor       =   &H80000005&
  37.       Caption         =   "OK"
  38.       Default         =   -1  'True
  39.       Height          =   375
  40.       Left            =   1200
  41.       TabIndex        =   4
  42.       Top             =   840
  43.       Width           =   1935
  44.    End
  45.    Begin VB.TextBox link 
  46.       Height          =   285
  47.       Left            =   1920
  48.       TabIndex        =   3
  49.       Top             =   480
  50.       Width           =   3735
  51.    End
  52.    Begin VB.TextBox address 
  53.       Height          =   285
  54.       Left            =   1920
  55.       TabIndex        =   2
  56.       Text            =   "http://www."
  57.       Top             =   120
  58.       Width           =   3735
  59.    End
  60.    Begin VB.Label Label3 
  61.       Appearance      =   0  'Flat
  62.       BackColor       =   &H80000005&
  63.       Caption         =   "Label3"
  64.       ForeColor       =   &H80000008&
  65.       Height          =   15
  66.       Left            =   720
  67.       TabIndex        =   6
  68.       Top             =   720
  69.       Width           =   15
  70.    End
  71.    Begin VB.Label Label2 
  72.       BackStyle       =   0  'Transparent
  73.       Caption         =   "Link text:"
  74.       BeginProperty Font 
  75.          Name            =   "Arial"
  76.          Size            =   9.75
  77.          Charset         =   177
  78.          Weight          =   700
  79.          Underline       =   0   'False
  80.          Italic          =   0   'False
  81.          Strikethrough   =   0   'False
  82.       EndProperty
  83.       Height          =   255
  84.       Left            =   840
  85.       TabIndex        =   1
  86.       Top             =   480
  87.       Width           =   975
  88.    End
  89.    Begin VB.Label Label1 
  90.       BackStyle       =   0  'Transparent
  91.       Caption         =   "Web Site address:"
  92.       BeginProperty Font 
  93.          Name            =   "Arial"
  94.          Size            =   9.75
  95.          Charset         =   177
  96.          Weight          =   700
  97.          Underline       =   0   'False
  98.          Italic          =   0   'False
  99.          Strikethrough   =   0   'False
  100.       EndProperty
  101.       Height          =   255
  102.       Left            =   120
  103.       TabIndex        =   0
  104.       Top             =   120
  105.       Width           =   1815
  106.    End
  107. End
  108. Attribute VB_Name = "Form2"
  109. Attribute VB_GlobalNameSpace = False
  110. Attribute VB_Creatable = False
  111. Attribute VB_PredeclaredId = True
  112. Attribute VB_Exposed = False
  113.  
  114. Option Explicit
  115.  
  116. Sub cancel_Click()
  117. Unload Me
  118. End Sub
  119.  
  120. Sub ok_Click()
  121. Form1.main.SelText = Form1.main.SelText + "<a href=" & Chr(34) & address.Text & Chr(34) & ">" + link.Text + "</a>"
  122. Form2.address.Text = "http://www."
  123. Form2.link.Text = ""
  124. Unload Me
  125. End Sub
  126.  
  127.